﻿// See https://aka.ms/new-console-template for more information

using Castle.DynamicProxy;
using StackExchange.Redis;
using StackExchange.Redis.Extensions.Core.Implementations;
using WithAOPLib;

//var proxyGenerator = new ProxyGenerator();//创建一个代理生成器
////下面这行代码是为要拦截的类创建代理，第一个泛型参数就是要拦截的类，第二个参数是自定义的切面
//var weiboService = proxyGenerator.CreateClassProxy<WeiBoClient>(new MyInterceptorAspect());
//weiboService.Send("hello");

ConnectionMultiplexer multiplexer = ConnectionMultiplexer.Connect("btccndly-state-cn-legal-document-check-service-redis-22419.redis.cache.chinacloudapi.cn:6380,password=0P3L+NXjp6pm89HLfxOgAe96fC6JaXX3R6d2gGclBrI=,ssl=True,abortConnect=False");
IDatabase db = multiplexer.GetDatabase(0);

Console.Read();
